﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MessageService.cs" company="SMART business">
//   Copyright (c) 2014 All Rights Reserved
// </copyright>
// <summary>
//   Defines the IMessageService type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.Windows.Forms;

namespace UsersSettingsTool.Additional_Classes.MessageService
{
    /// <summary>
    /// The message service.
    /// </summary>
    public class MessageService : IMessageService
    {
        /// <summary>
        /// The show message.
        /// </summary>
        /// <param name="message">
        /// The message.
        /// </param>
        public void ShowMessage(string message)
        {
            MessageBox.Show(message, @"Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        /// <summary>
        /// The show exclamation.
        /// </summary>
        /// <param name="message">
        /// The message.
        /// </param>
        public void ShowExclamation(string message)
        {
            MessageBox.Show(message, @"Warning", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        /// <summary>
        /// The show error.
        /// </summary>
        /// <param name="message">
        /// The message.
        /// </param>
        public void ShowError(string message)
        {
            MessageBox.Show(message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
